
The single and double bracket subsetting is identical in the case of SpatiaStacks.
# S4 method for SpatialStack,ANY,ANY
[(x, i, drop = TRUE)
SpatialStack
object.
subscript of vector-like subsetting.
logical
in case the result of subsetting is a single element, should the SpatialStack
wrapper be dropped and the element be reduced to a single Spatial
?
A SpatialStack
or Spatial
class object.
# NOT RUN {
# stack of the paleomap paleocoastlines
data(coasts)
spstack <- coasts@stack
spstack[1]
# }
Run the code above in your browser using DataLab